﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FieldTools.Client.Business.IBusiness
{
    public interface IXMLBus
    {
        /// <summary>
        /// 爬取执行
        /// </summary>
        /// <param name="sourceDoc">html源码</param>
        /// <param name="pathMode">抓取路径类型,1 xpath, 2 selectors</param>
        /// <param name="path">节点路径</param>
        /// <param name="type">读取类型，1 InnerHtml,2 OuterHtml,3 InnerText</param>
        /// <param name="attributes">读取属性</param>
        /// <returns></returns>
        string Crawl(string sourceDoc, int pathMode, string path, int type, string attributes);
    }
}
